<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:tiles="http://tiles.apache.org/tags-tiles" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3" lang="en">

<head>
<title><tiles:getAsString name="title" /></title>

<meta name="keywords" content="keyword1,keyword2,keyword3"/>
<meta name="description" content="this is my page"/>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />  


</head>

<body tiles:fragment="content">
	page 4
	<table border="1px solid">
		<form action="#" th:action="@{/tl/do4}" th:object="${role}" method="post">
			<input th:field="*{id}"/>
			<br/>
			<label th:for="${#ids.next('status')}" th:text="*{status}" >Status</label>
			<input type="checkbox" th:field="*{status}"/>
			<input type="checkbox" th:checked="${true}" />
			<ul>
				<li th:each="b,rowStatus : *{boolList}">
					<input type="checkbox" th:field="*{boolList[__${rowStatus.index}__]}"  th:value="${b}"  />
					<input type="checkbox" th:checked="${b}"/>
					
				</li>
			</ul>
			<br/>
			Function checkBox
			<ul>
				<li th:each="f ,rowSatus: *{functions}">
					<label th:for="${#ids.next('functions__${rowSatus.index}__.enable')}" th:text="${f.code}"></label>
					<input type="checkbox" th:field="*{functions[__${rowSatus.index}__].enable}" th:value="${f.code}"/>
					<label th:for="${#ids.prev('functions__${rowSatus.index}__.enable')}" th:text="${f.code}"></label>
				</li>
			</ul>
			
			Function Radio
			<ul>
				<li th:each="b , rowStatus : ${boolList}">
					<input type="radio" th:field="*{status}" th:value="${b}" />
				</li>
			</ul>
			
			DropList
			<select th:field="*{status}">
				<option th:each="b ,rowStatus : ${boolList}" th:text="${'Index:'+rowStatus.index}" th:value="${b}" >a</option>
			</select>
			
		</form>
	</table>
</body>
</html>
